/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-04-26 15:29:29
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-05 22:22:48
 * @FilePath: \src\src\LicenseManager.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef __LICENSE_MANAGER_H__
#define __LICENSE_MANAGER_H__

#include "string.h"
#include "sysconfig.h"
#include "SysinfoManager.h"
#include "SHA512.h"

#define  LICENSE_FILE_PATH  "/data/app/pemd/license"

class LicenseManager {
private:
    char     c_sn[64];
    static LicenseManager c_instance;

private:
    std::string getSHA512(std::string filename);
public:
    LicenseManager();
    ~LicenseManager();

    bool IsLicensed();
    static LicenseManager* GetInstance();
};

#endif // __LICENSE_MANAGER_H__
